package 根据身高重建队列;

import java.util.Arrays;

/**
 * @author: AirMan
 * @date: 2025/4/24 15:17
 * @description:
 */
public class Test {
    public static void main(String[] args) {

//        int[][] people = new int[][]{{7, 0}, {4, 4}, {7, 1}, {5, 0}, {6, 1}, {5, 2}};
        int[][] people = new int[][]{{4, 0}, {5, 0}, {2, 2}, {3, 2}, {1, 4}, {6, 0}};

        Solution solution = new Solution();

        int[][] result = solution.reconstructQueue(people);

        for (int[] per : result) {
            System.out.print(Arrays.toString(per) + " , ");
        }


    }
}
